package com.preparation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.preparation.domain.Category;
import com.preparation.dto.CascadeNodeDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CategoryMapper extends BaseMapper<Category> {

    // 根据 category_name 查询类别
    @Select("select * from tbl_categories where category_name=#{categoryName}")
    Category getByCname(String categoryName);
}
